package cn.edu.scau.cmi.ZengLinghong.chapter06;

public class Learner {
	public double area(Geometry ...p) {
		double sum=0;
		for(int i=0; i<p.length; i++) {
			sum+=p[i].getArea();
		}
		return sum;
	}
}
